//function to evaluate first function given
int function1(int a, int b, int c, int d, int e)
{
	//(A OR B) AND NOT ((C AND D) OR E)
    return ((a||b) && !((c && d) || e));
}

//function to evaluate second function given
int function2(int a, int b, int c, int d, int e)
{
	//	(NOT A OR NOT B) AND (NOT C OR D) AND (A OR NOT D OR E)
    return ((!a || !b) && (!c || d) && (a || !d || e));
}

//function to evaluate third function given
int function3(int a, int b, int c, int d, int e)
{
	// (A AND NOT B AND NOT (C OR (NOT D AND E)) AND NOT (B AND NOT C))
	return (a && !b && !(c || (!d && e)) && !(b && !c));
}

//function to evaluate first function given
int function4(int a, int b, int c, int d, int e)
{
	// A OR NOT (B OR (C AND NOT D) OR (B AND NOT E))
	return (a || !(b || (c && !d) || (b && !e)));
}
